package com.my.api.request.user;

import java.io.Serializable;

import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.serializer.SerializerFeature;

public class RegisterRequest implements Serializable{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 6867014684906978464L;
	
	//账号
	@NotBlank(message="账号不能为空")
	@Length(max=18,min=8,message="账号长度8～18位")
	private String account;
	//密码
	@NotBlank(message="密码不能为空")
	@Length(max=16,min=6,message="密码长度6～16位")
	private String password;
	
	
	//验证码
	@NotBlank(message="验证码不能为空")
	@Length(max=6,min=6,message="验证码必须为6位字符")
	private String captcha;
	
	
	
	public String getAccount() {
		return account;
	}



	public void setAccount(String account) {
		this.account = account;
	}



	public String getPassword() {
		return password;
	}



	public void setPassword(String password) {
		this.password = password;
	}




	public String getCaptcha() {
		return captcha;
	}



	public void setCaptcha(String captcha) {
		this.captcha = captcha;
	}



	public static long getSerialversionuid() {
		return serialVersionUID;
	}



	@Override
	public String toString() {
		return JSON.toJSONString(this, SerializerFeature.UseISO8601DateFormat);
	}
}
